package cn.iocoder.yudao.module.promotion.rebate.pojo.dto;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.DTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 数据传输对象
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/10
 */
@Data
public class RebateRecordDTO implements DTO {

    @Schema(description = "用户编号")
    private Long userId;

    @Schema(description = "分佣比例，0-100之间的数字")
    private Double bonusPercent;

    @Schema(description = "获得佣金，单位为分")
    private Integer bonusMoney;

    @Schema(description = "业务类型，如购买产品")
    private String bizType;

    @Schema(description = "业务编号，如订单项编号")
    private String bizId;

    @Schema(description = "来源用户编号")
    private Long sourceUserId;

    @Schema(description = "分佣基准金额，单位为分")
    private Integer basePrice;

    @Schema(description = "状态：0-待入账、1-已结算、2-已失效、3-已取消")
    private Byte status;

    @Schema(description = "解冻时间")
    private LocalDateTime unfreezeTime;

    @Schema(description = "取消时间")
    private LocalDateTime cancelTime;

    @Schema(description = "备注")
    private String note;

}